@extends('layout.admin')

@section('content')
<div class="container">
    <div class="row">
        <div class="span2">
        	<div class="well sidebar-nav">
        		<ul class="nav nav-list">
        			<li class="nav-header">菜单</li>
        			<li><a href="{{URL::to('admin/user')}}"><i class="icon-th-list"></i>
        					用户列表</a></li>
        			<li class="active"><a href="{{URL::to('admin/user/create')}}"><i
        					class="icon-pencil"></i> 添加用户</a></li>
        		</ul>
        	</div>
        </div>
    
    
        <div class="span10">
            <ul class="breadcrumb">
        		<li><a href="{{ URL::to('admin') }}">首页</a> <span class="divider">/</span></li>
				<li><a href="{{ URL::to('admin/user') }}">用户管理</a> <span class="divider">/</span></li>
				<li class="active">用户添加</li>
        	</ul>
        	
        	{{ HTML::ul($errors->all()) }}
    
            {{Form::open(['url'=>'admin/user', 'class'=>'form-horizontal'])}}
            
                {{Form::token()}}
                <div class="control-group">
                    {{Form::label('inputUname', '用户名', ['class'=>'control-label'])}}
                    <div class="controls">
                      {{Form::text('username','', ['placeholder'=>'UserName', 'id'=>'inputUname'])}}
                    </div>
                  </div>
                <div class="control-group">
                    {{Form::label('inputpasswd', '密码', ['class'=>'control-label'])}}
                    <div class="controls">
                      {{Form::text('password','', ['placeholder'=>'password', 'id'=>'inputpasswd'])}}
                    </div>
                  </div>
                <div class="control-group">
                    {{Form::label('inputemail', '邮箱', ['class'=>'control-label'])}}
                    <div class="controls">
                      {{Form::text('email','', ['placeholder'=>'email', 'id'=>'inputemail'])}}
                    </div>
                  </div>  
                <div class="control-group">
                    <div class="controls">
                      {{Form::submit('保存添加', ['class'=>'btn btn-success'])}}
                    </div>
                </div>
            {{Form::close()}}
        </div>
    </div>
</div>
@stop

